package com.hfuu.service.check;

import com.hfuu.exceptions.ServiceExceptionSpec;
import com.hfuu.service.check.request.FileDataRequest;
import com.hfuu.service.check.response.FileDataResponse;
import org.springframework.http.ResponseEntity;

import java.io.IOException;
import java.util.List;

public interface FileDataService {

    /**
     * 组织注册审核
     * @param request
     * @return
     * @throws Exception
     */
    String registerOrginzerCheck(FileDataRequest request) throws ServiceExceptionSpec, IOException;

    /**
     * 删除组织资料
     * @param request
     * @return
     */
    Integer deleteOrginzeData(String fileName) throws ServiceExceptionSpec;

    /**
     * 获得所有文件资料
     * @param request
     * @return
     */
    List<FileDataResponse> getAllOrginzeData(FileDataRequest request) throws ServiceExceptionSpec;

    /**
     * 获得数据流
     * @param request
     * @return
     */
    org.springframework.http.ResponseEntity<byte[]> getDataSource(Integer id) throws ServiceExceptionSpec;

    /**
     * 获得图片数据
     * @param filePath
     * @param fileName
     * @return
     */
    org.springframework.http.ResponseEntity<byte[]> getPicFile(String filePath, String fileName);
}
